package com.hx.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.security.auth.Subject;
import java.security.Principal;

/**
 * @author zhangziyao
 */
@Data
@NoArgsConstructor
@ToString
public class SysUser implements Principal {
    private String username;
    private String password;

    @Override
    public String getName() {
        return username;
    }

    @Override
    public boolean implies(Subject subject) {
        return false;
    }
}
